import { handleActions } from 'redux-actions';
import { agree } from '../actions/ConsentAction';

const initialState = {
  isAgreed: false,
}

const consent = handleActions({
  [agree]: (state) => {
    return {
      isAgreed: true,
    };
  },
}, initialState);

export default consent
